﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace blackhouse.BlackApart.Actions {
    public class ReceiptMailReservationAction : ClientMailReservationAction {

        #region ClientMailReservationAction Members

        protected override string[] GetToAddress() {
            string mails = ConfigurationManager.AppSettings["QuickContactReceivers"];
            string[] ms;
            if (!string.IsNullOrEmpty(mails)) {
                ms = mails.Split(';');
                if (ms.Length > 0) {
                    return ms;
                }
            }
            throw new ArgumentNullException("Brak AppSetting o kluczu QuickContactReceivers. NIe wiadomo gdzie wysłać maila");
        }

        #endregion

    }
}
